package org.example.demo9;

import jakarta.annotation.PostConstruct;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.example.demo9.scanPackage.DataDemo;
import org.springframework.stereotype.Component;

/**
 * 用于测试注入效果
 *
 * @author Gong.Yang
 */
@Slf4j
@Component
@RequiredArgsConstructor
public class SimpleComponent {
    private final BaseRepository<DataDemo, Application> dataDemoBaseRepository;
    /**
     * 验证注入效果
     */
    @PostConstruct
    public void init() {
        log.info("【join】before");
        System.out.println(dataDemoBaseRepository);
        log.info("【join】after");
    }

}
